Steve Klabnik [Mon, 27 Jul 2015 19:14:42 +0000 (15:14 -0400)]
Consolidate and document environment variables
These were spread out before, now they're in one place.
Fixes #1538
bors [Fri, 21 Aug 2015 19:00:53 +0000 (19:00 +0000)]
Auto merge of #1928 - alexcrichton:update, r=alexcrichton
* Update dependencies that are getting warnings on nightly
* Tweak expected output of failing tests
Alex Crichton [Fri, 21 Aug 2015 18:44:16 +0000 (11:44 -0700)]
Update for Rust nightly
* Update dependencies that are getting warnings on nightly
* Tweak expected output of failing tests
bors [Fri, 21 Aug 2015 18:41:34 +0000 (18:41 +0000)]
Auto merge of #1927 - Turbo87:python, r=alexcrichton
see https://www.python.org/dev/peps/pep-0008/
Tobias Bieniek [Fri, 21 Aug 2015 15:32:36 +0000 (17:32 +0200)]
src/etc: Fix PEP8 issues in Python scripts
Tobias Bieniek [Fri, 21 Aug 2015 15:30:26 +0000 (17:30 +0200)]
Add .pyc files in src/etc/ to .gitignore file
bors [Thu, 20 Aug 2015 04:22:28 +0000 (04:22 +0000)]
Auto merge of #1922 - Gankro:css, r=alexcrichton
Alexis Beingessner [Thu, 20 Aug 2015 03:38:56 +0000 (20:38 -0700)]
make images less amazing
bors [Thu, 20 Aug 2015 03:08:10 +0000 (03:08 +0000)]
Auto merge of #1921 - Gankro:doc, r=alexcrichton
Alexis Beingessner [Thu, 20 Aug 2015 03:05:57 +0000 (20:05 -0700)]
update makefile to include new images
bors [Wed, 19 Aug 2015 16:36:41 +0000 (16:36 +0000)]
Auto merge of #1914 - thirtythreeforty:crate-type, r=alexcrichton
This fixes a problem with manifest parsing that I detailed [here](http://stackoverflow.com/a/
32055245/
1830736). Namely, requesting an invalid `crate-type`, as in the following:
```
[lib]
crate-type = ["bad_type"]
```
did not cause an error to be printed, but rather the bad list of types was silently converted to `["rlib"]`. This was confusing to the user.
Cargo now properly rejects the above snippet.
bors [Wed, 19 Aug 2015 16:14:14 +0000 (16:14 +0000)]
Auto merge of #1920 - Turbo87:uppercase-docopts, r=alexcrichton
Every other command except for `cargo new` is using <argument> for positional arguments and ARG for option arguments.
Tobias Bieniek [Wed, 19 Aug 2015 08:49:50 +0000 (10:49 +0200)]
bin/new: Use uppercase option arguments
Every other command except for `cargo new` is using <argument> for positional
arguments and ARG for option arguments.
George Hilliard [Sat, 15 Aug 2015 19:49:09 +0000 (14:49 -0500)]
Warn about and ignore invalid crate-types in manifest
bors [Tue, 18 Aug 2015 18:11:02 +0000 (18:11 +0000)]
Auto merge of #1918 - Gankro:doc-teams, r=alexcrichton
Alexis Beingessner [Tue, 18 Aug 2015 18:09:49 +0000 (11:09 -0700)]
modify help owner
Alexis Beingessner [Tue, 18 Aug 2015 17:55:01 +0000 (10:55 -0700)]
not really a url
Alexis Beingessner [Tue, 18 Aug 2015 17:45:54 +0000 (10:45 -0700)]
add docs for teams
bors [Tue, 18 Aug 2015 17:27:44 +0000 (17:27 +0000)]
Auto merge of #1916 - alexcrichton:update-libssh2-sys, r=alexcrichton
The builds on the linux bots are currently broken because the recent
modifications to this build script forgot to set up PKG_CONFIG_PATH for custom
installations of OpenSSL
Alex Crichton [Tue, 18 Aug 2015 17:24:56 +0000 (10:24 -0700)]
Update libssh2-sys's build script
The builds on the linux bots are currently broken because the recent
modifications to this build script forgot to set up PKG_CONFIG_PATH for custom
installations of OpenSSL
bors [Mon, 17 Aug 2015 17:10:09 +0000 (17:10 +0000)]
Auto merge of #1915 - alexcrichton:downgrade-libgit2, r=huonw
Unfortunately this flew past on the bots because we didn't built on one of the
10.7 bots, but it looks like libgit2 doesn't currently build on OSX 10.7 so
we'll have to wait until that's fixed to update.
The tracking issue for fixing this in libgit2 is: https://github.com/libgit2/libgit2/issues/3386
Alex Crichton [Mon, 17 Aug 2015 16:46:45 +0000 (09:46 -0700)]
Revert update of libgit2
Unfortunately this flew past on the bots because we didn't built on one of the
10.7 bots, but it looks like libgit2 doesn't currently build on OSX 10.7 so
we'll have to wait until that's fixed to update.
bors [Mon, 17 Aug 2015 16:36:40 +0000 (16:36 +0000)]
Auto merge of #1912 - achanda:patch-1, r=alexcrichton
The -B switch turns off .pyc file generation
bors [Mon, 17 Aug 2015 16:22:35 +0000 (16:22 +0000)]
Auto merge of #1908 - alexcrichton:moar-stack, r=huonw
There have been a number of reports of Cargo triggering a stack overflow in the
algorithm implemented in `cargo::core::resolve`, and although many attempts have
been made to reduce the stack space of the two relevant recursive functions it
seems likely that this will not always be enough. For now, before moving the
recursion to the heap manually, spawn the main thread with a large stack (e.g.
mirror what the compiler does) to ensure that the same scenarios happen across
platforms at least.
Currently on my machine I get a 2MB stack on Linux and a 512K stack on OSX, so
bumping this up to 8MB should be more than enough for the recursion in this
algorithm. I also hope that with nonzeroing drop a few of the recursive calls
will be able to become tail recursive, which should also help with stack space!
Closes #1897
Abhishek Chanda [Mon, 17 Aug 2015 07:18:34 +0000 (00:18 -0700)]
Do not generate .pyc file
The -B switch turns off .pyc file generation
Alex Crichton [Sun, 16 Aug 2015 17:47:39 +0000 (10:47 -0700)]
Run cargo with a large stack
There have been a number of reports of Cargo triggering a stack overflow in the
algorithm implemented in `cargo::core::resolve`, and although many attempts have
been made to reduce the stack space of the two relevant recursive functions it
seems likely that this will not always be enough. For now, before moving the
recursion to the heap manually, spawn the main thread with a large stack (e.g.
mirror what the compiler does) to ensure that the same scenarios happen across
platforms at least.
Currently on my machine I get a 2MB stack on Linux and a 512K stack on OSX, so
bumping this up to 8MB should be more than enough for the recursion in this
algorithm. I also hope that with nonzeroing drop a few of the recursive calls
will be able to become tail recursive, which should also help with stack space!
Closes #1897
Alex Crichton [Sat, 15 Aug 2015 00:31:29 +0000 (17:31 -0700)]
Pass Method by reference to save some stack space
bors [Fri, 14 Aug 2015 20:44:13 +0000 (20:44 +0000)]
Auto merge of #1885 - alexcrichton:update-deps, r=alexcrichton
* Picks up a few breaking changes to dependency APIs, notably the tar-rs changes
and git2-rs changes.
* Builds should now work with VS 2015
Alex Crichton [Mon, 3 Aug 2015 17:04:22 +0000 (10:04 -0700)]
Update dependencies and Rust that's used
* Picks up a few breaking changes to dependency APIs, notably the tar-rs changes
and git2-rs changes.
* Builds should now work with VS 2015
bors [Thu, 13 Aug 2015 21:44:13 +0000 (21:44 +0000)]
Auto merge of #1903 - felixbuenemann:fix-el-capitan-make, r=alexcrichton
The upcoming Mac OS X 10.11 introduces a security measure thar prohibits exporting DYLD_LIBRARY_PATH to subshells. This fix removes the quotes around several program invocation so that they are not called from a subshell.
This fixes #1816.
Felix Bùˆnemann [Thu, 13 Aug 2015 17:28:50 +0000 (19:28 +0200)]
Fix make and make doc on Mac OS X 10.11 El Capitan
The upcoming Mac OS X 10.11 introduces a security measure thar prohibits
exporting DYLD_LIBRARY_PATH to subshells. This fix removes the quotes
around several program invocation so that they are not called from a
subshell.
bors [Thu, 13 Aug 2015 16:30:27 +0000 (16:30 +0000)]
Auto merge of #1902 - alexcrichton:update-url, r=huonw
Closes #1884
Alex Crichton [Thu, 13 Aug 2015 16:25:24 +0000 (09:25 -0700)]
Update rust-url to fix a bug in URL parsing
Closes #1884
bors [Thu, 13 Aug 2015 16:03:23 +0000 (16:03 +0000)]
Auto merge of #1895 - achanda:1892, r=alexcrichton
Closes #1892
bors [Wed, 12 Aug 2015 18:56:05 +0000 (18:56 +0000)]
Auto merge of #1896 - achanda:tidy, r=alexcrichton
Abhishek Chanda [Wed, 12 Aug 2015 06:21:06 +0000 (23:21 -0700)]
Improve the error message when a crate cannot be found
Closes #1892
Abhishek Chanda [Wed, 12 Aug 2015 06:27:53 +0000 (23:27 -0700)]
Fix error formatting a bit
bors [Wed, 12 Aug 2015 01:06:40 +0000 (01:06 +0000)]
Auto merge of #1893 - alexcrichton:bump, r=brson
Another Rust release rolled around so bump Cargo as well
r? @brson
I'll tag 0.4.0 after this merges
Alex Crichton [Tue, 11 Aug 2015 20:31:21 +0000 (13:31 -0700)]
Bump to 0.5.0
bors [Tue, 11 Aug 2015 01:26:53 +0000 (01:26 +0000)]
Auto merge of #1888 - achanda:1878, r=alexcrichton
Closes #1878
Abhishek Chanda [Tue, 11 Aug 2015 01:15:41 +0000 (18:15 -0700)]
Do not print extra newlines on error
Closes #1878
bors [Tue, 11 Aug 2015 00:14:27 +0000 (00:14 +0000)]
Auto merge of #1887 - alexcrichton:smaller-stacks, r=huonw
Apparently not actually emitting the calls to trace! saves a good deal of stack
space, fixing the overflow found in #1875.
Closes #1875
Alex Crichton [Tue, 11 Aug 2015 00:09:11 +0000 (17:09 -0700)]
Use a custom trace! macro in resolution
Apparently not actually emitting the calls to trace! saves a good deal of stack
space, fixing the overflow found in #1875.
Closes #1875
bors [Mon, 10 Aug 2015 15:58:38 +0000 (15:58 +0000)]
Auto merge of #1881 - brson:built-on, r=alexcrichton
rustc no longer does this, so neither should Cargo.
bors [Sun, 9 Aug 2015 15:54:13 +0000 (15:54 +0000)]
Auto merge of #1883 - mdinger:mdinger-patch-1, r=steveklabnik
See [here](http://doc.crates.io/manifest.html#the-[package]-section) where the link is broken. I think this'll fix it.
mdinger [Sun, 9 Aug 2015 00:24:56 +0000 (20:24 -0400)]
Fix link
Brian Anderson [Fri, 7 Aug 2015 18:26:12 +0000 (11:26 -0700)]
Remove the built-on date from --version
rustc no longer does this, so neither should Cargo.
bors [Wed, 5 Aug 2015 18:39:55 +0000 (18:39 +0000)]
Auto merge of #1876 - Gankro:option, r=alexcrichton
This Option is present in crates.io's definition of EncodableUser, so I think it should be in Cargo too.
Alexis Beingessner [Wed, 5 Aug 2015 18:33:56 +0000 (11:33 -0700)]
add missing Option to avatar
bors [Tue, 4 Aug 2015 23:39:29 +0000 (23:39 +0000)]
Auto merge of #1832 - iliekturtles:1363-color, r=alexcrichton
First pass ready for review! I went with the option of always attempting to create a color shell and then checking the `color_when` and `tty` flags to determine if `Shell` should actually write color output.
Should I squash the commits?
Mike Boutin [Tue, 4 Aug 2015 22:49:24 +0000 (18:49 -0400)]
Change the no_term test to run an external process.
Remove $TERM from the new process' environment and verify that output
is not sent to stderr.
Mike Boutin [Tue, 4 Aug 2015 01:11:34 +0000 (21:11 -0400)]
Add `no_term` test that ensures correct output when a
`TerminfoTerminal` cannot be created.
Mike Boutin [Sun, 2 Aug 2015 01:09:52 +0000 (21:09 -0400)]
Check for TermInfo availability to see if color output is possible
before attempting to create a colored terminal.
Mike Boutin [Fri, 17 Jul 2015 23:41:56 +0000 (19:41 -0400)]
Implement --color [auto|always|never].
Closes #1363.
bors [Tue, 4 Aug 2015 22:47:42 +0000 (22:47 +0000)]
Auto merge of #1830 - alexcrichton:cap-lints, r=brson
This commit adds support to Cargo to pass `--cap-lints allow` to all upstream
dependencies instead of `-A warings`. This should serve the same purpose of
suppressing warnings in upstream dependencies as well as preventing widespread
breakage whenever a change to a lint is introduced in the compiler.
bors [Tue, 4 Aug 2015 03:49:24 +0000 (03:49 +0000)]
Auto merge of #1874 - alexcrichton:yet-another-windows-flaky-tests-zomg, r=alexcrichton
Windows doesn't like us deleting files right after running a process that works
on them, so be sure to call `cargo` instead of `cargo_process`.
Alex Crichton [Tue, 4 Aug 2015 03:46:24 +0000 (20:46 -0700)]
Fix a flaky tests on Windows
Windows doesn't like us deleting files right after running a process that works
on them, so be sure to call `cargo` instead of `cargo_process`.
bors [Mon, 3 Aug 2015 23:42:07 +0000 (23:42 +0000)]
Auto merge of #1873 - alexcrichton:fix-transitive-activation, r=brson
When activating the feature `foo/bar` you're actually activating both the
feature `foo` and the `bar` feature of the relevant package. Cargo previously
forgot to activate the `foo` feature, and this commit fixes that up.
Closes #1871
Alex Crichton [Mon, 3 Aug 2015 22:10:31 +0000 (15:10 -0700)]
Fix activating features in dependencies transitively
When activating the feature `foo/bar` you're actually activating both the
feature `foo` and the `bar` feature of the relevant package. Cargo previously
forgot to activate the `foo` feature, and this commit fixes that up.
Closes #1871
bors [Mon, 3 Aug 2015 01:40:34 +0000 (01:40 +0000)]
Auto merge of #1868 - alex:patch-2, r=alexcrichton
bors [Mon, 3 Aug 2015 01:22:36 +0000 (01:22 +0000)]
Auto merge of #1867 - alex:patch-1, r=alexcrichton
Alex Gaynor [Sun, 2 Aug 2015 23:16:18 +0000 (19:16 -0400)]
Fixed a typo in a comment.
Alex Gaynor [Sun, 2 Aug 2015 23:15:57 +0000 (19:15 -0400)]
Fixed a typo in a comment.
bors [Fri, 31 Jul 2015 03:34:47 +0000 (03:34 +0000)]
Auto merge of #1862 - ucarion:ucarion-fix-typo, r=alexcrichton
`layou tis` -> `layout is` :smile:
Ulysse Carion [Fri, 31 Jul 2015 03:01:08 +0000 (20:01 -0700)]
Fix a typo
bors [Wed, 29 Jul 2015 17:27:23 +0000 (17:27 +0000)]
Auto merge of #1860 - alexcrichton:use-filetime-set-file-times, r=alexcrichton
Don't vendor the implementation locally.
Closes #1859
Alex Crichton [Wed, 29 Jul 2015 17:25:22 +0000 (10:25 -0700)]
Use filetime for set_file_times
Don't vendor the implementation locally.
Closes #1859
bors [Tue, 28 Jul 2015 22:06:00 +0000 (22:06 +0000)]
Auto merge of #1857 - vyskocilm:master, r=alexcrichton
Solution: add a note about calling git submodule to README.md
Michal Vyskocil [Tue, 28 Jul 2015 22:01:11 +0000 (00:01 +0200)]
remove the name of submodule per recomendation of @alexcrichton
Michal Vyskocil [Tue, 28 Jul 2015 21:38:22 +0000 (23:38 +0200)]
Problem: make install fail on non-existing rust-installer
Solution: add a note about calling git submodule to README.md
bors [Tue, 28 Jul 2015 16:06:38 +0000 (16:06 +0000)]
Auto merge of #1853 - apjanke:zsh-compl-fix-parse-near-manifest, r=alexcrichton
Fixes a syntax error in the zsh completion definition.
The `[[ $foo ]]` test isn't valid for zsh; it needs `-z` or `-n`. This PR changes the `! [[ $manifest ]]` which appeared to be checking for an empty manifest to `[[ -z $manifest ]]`, which is the zsh syntax for it.
Fixes #1852.
Addresses homebrew/homebrew#41374.
I tested this on OS X 10.9. I only tested the `zsh` completion behavior, since Rust itself is unchanged by this.
The #920 PR looks like it was trying to do the same thing, but it got the semantics wrong. Putting `!` and `[[` together as `![[` removes the syntax error, but not because `![[ $x ]]` is a test for nonempty; `![[` is now a history backreference. The `!` needs to be its own word to be used as a logical "not".
Andrew Janke [Tue, 28 Jul 2015 08:41:41 +0000 (04:41 -0400)]
zsh completion: fix [[ ... ]] conditional syntax
bors [Tue, 28 Jul 2015 01:10:24 +0000 (01:10 +0000)]
Auto merge of #1850 - alexcrichton:update-docopt, r=alexcrichton
Closes #1426
Alex Crichton [Tue, 28 Jul 2015 01:08:28 +0000 (18:08 -0700)]
Update docopt to fix forwarding `--`
Closes #1426
bors [Mon, 27 Jul 2015 23:18:25 +0000 (23:18 +0000)]
Auto merge of #1847 - steveklabnik:gh1707, r=alexcrichton
Fixes #1707
Steve Klabnik [Mon, 27 Jul 2015 20:15:21 +0000 (16:15 -0400)]
Link manifst docs to version info in crates.io docs
Fixes #1707
bors [Mon, 27 Jul 2015 23:06:16 +0000 (23:06 +0000)]
Auto merge of #1849 - alexcrichton:appveyor-master, r=alexcrichton
We're generating a lot of builds for the `tmp`, `auto-cargo`, and `gh-pages` branches...
Alex Crichton [Mon, 27 Jul 2015 23:01:41 +0000 (16:01 -0700)]
Only run appveyor on the master branch
bors [Mon, 27 Jul 2015 22:50:25 +0000 (22:50 +0000)]
Auto merge of #1848 - alexcrichton:less-cyclic, r=huonw
This optimization ended up not being correct with the recent switch to being
more recursive, and after some profiling it looks like this optimization for
memory usage isn't even needed any more. This commit removes the `Rc` sharing,
fixing #1841 in the process.
Closes #1841
Alex Crichton [Mon, 27 Jul 2015 22:40:02 +0000 (15:40 -0700)]
Remove an Rc optimization that's no longer necessary
This optimization ended up not being correct with the recent switch to being
more recursive, and after some profiling it looks like this optimization for
memory usage isn't even needed any more. This commit removes the `Rc` sharing,
fixing #1841 in the process.
Closes #1841
bors [Mon, 27 Jul 2015 21:13:09 +0000 (21:13 +0000)]
Auto merge of #1843 - steveklabnik:gh1279, r=alexcrichton
* use crates.io example
* mention absolute paths
Fixes #1279
bors [Mon, 27 Jul 2015 19:16:34 +0000 (19:16 +0000)]
Auto merge of #1844 - steveklabnik:gh1407, r=alexcrichton
Fixes #1407
Steve Klabnik [Mon, 27 Jul 2015 18:49:50 +0000 (14:49 -0400)]
Add mention of specific tests in guide
Fixes #1407
Steve Klabnik [Mon, 27 Jul 2015 18:45:44 +0000 (14:45 -0400)]
Update override documentation
* use crates.io example
* mention absolute paths
Fixes #1279
bors [Mon, 27 Jul 2015 18:43:49 +0000 (18:43 +0000)]
Auto merge of #1842 - steveklabnik:gh1177, r=alexcrichton
While doing this, I noticed that the manifest documentation does mention that
'cargo test' tests examples, so this also includes some information about this
in the guide.
Fixes #1177
Steve Klabnik [Mon, 27 Jul 2015 18:35:37 +0000 (14:35 -0400)]
Mention doc tests with cargo test.
While doing this, I noticed that the manifest documentation does mention that
'cargo test' tests examples, so this also includes some information about this
in the guide.
Fixes #1177
bors [Mon, 27 Jul 2015 17:38:01 +0000 (17:38 +0000)]
Auto merge of #1837 - alexcrichton:travis-parallel, r=alexcrichton
This was previously set as travis would frequently fail to spawn a new process
due to resource limits being hit, but now that we're using `sudo: false` it's
looking like that infrastructure is more robust and we may be able to run tests
in parallel.
Alex Crichton [Sun, 26 Jul 2015 17:05:02 +0000 (10:05 -0700)]
Test 32-bit Windows on appveyor
bors [Mon, 27 Jul 2015 04:24:09 +0000 (04:24 +0000)]
Auto merge of #1827 - mark-buer:config-tool-paths, r=alexcrichton
~~... and adds support for absolute path rustc and rustdoc tools.~~
Mark Buer [Fri, 24 Jul 2015 06:35:53 +0000 (18:35 +1200)]
Enables support for relative pathed linker and ar tools.
bors [Sun, 26 Jul 2015 17:02:25 +0000 (17:02 +0000)]
Auto merge of #1836 - alexcrichton:fix-nightly, r=alexcrichton
The lints for C apis were tweaked recently and 0-size structs aren't liked.
These should be empty `enum`s anyway, however, to ensure they're never created.
Alex Crichton [Sun, 26 Jul 2015 17:02:13 +0000 (10:02 -0700)]
Try being more parallel on travis
This was previously set as travis would frequently fail to spawn a new process
due to resource limits being hit, but now that we're using `sudo: false` it's
looking like that infrastructure is more robust and we may be able to run tests
in parallel.
Alex Crichton [Sun, 26 Jul 2015 15:58:59 +0000 (08:58 -0700)]
Fix compile on nightly
The lints for C apis were tweaked recently and 0-size structs aren't liked.
These should be empty `enum`s anyway, however, to ensure they're never created.
bors [Sun, 26 Jul 2015 15:58:02 +0000 (15:58 +0000)]
Auto merge of #1835 - gentoo90:bash-comp, r=alexcrichton
gentoo90 [Sun, 26 Jul 2015 11:21:44 +0000 (14:21 +0300)]
Bashcomp: improve performance
Calling `cargo --list` on every completion is too slow.
Call it once on bash start and cache the output.
gentoo90 [Sun, 26 Jul 2015 10:59:57 +0000 (13:59 +0300)]
Bashcomp: add missing options, add --vcs completion
bors [Sat, 25 Jul 2015 00:48:43 +0000 (00:48 +0000)]
Auto merge of #1831 - alexcrichton:publish-cargo, r=huonw
This commit tweaks some metadata here and there to publish Cargo on crates.io.
* License fields are added to Cargo.tomls
* `registry` was renamed to `crates-io`
* API docs for the `cargo` crate are now generated via `make doc`
Alex Crichton [Fri, 24 Jul 2015 21:37:03 +0000 (14:37 -0700)]
Tweak metadata to publish Cargo on crates.io
This commit tweaks some metadata here and there to publish Cargo on crates.io.
* License fields are added to Cargo.tomls
* `registry` was renamed to `crates-io`
* API docs for the `cargo` crate are now generated via `make doc`
Alex Crichton [Fri, 24 Jul 2015 18:49:19 +0000 (11:49 -0700)]
Pass --cap-lints=allow instead of -Awarnings
This commit adds support to Cargo to pass `--cap-lints allow` to all upstream
dependencies instead of `-A warings`. This should serve the same purpose of
suppressing warnings in upstream dependencies as well as preventing widespread
breakage whenever a change to a lint is introduced in the compiler.
bors [Fri, 24 Jul 2015 17:02:37 +0000 (17:02 +0000)]
Auto merge of #1829 - steveklabnik:doc_quickfix, r=alexcrichton